<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加页面</title>
    <link rel="shortcut icon"/>
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
    </script>
</head>
<body>
    <div>
        <h3>添加空气质量信息</h3>
        <form action="#" th:action="@{/add/addQualityIndex}"  method="post" onsubmit="return chekForm()">
            <label for="districtId">监测区域：*</label>
            <select data-placeholder="请选择" id="districtId" name="districtId" required>
                <option value="" selected>请选择</option>
                <option th:each="district:${districtList}" th:value="${district.id}"
                        th:text="${district.name}"></option>
            </select>
            <br />
            <label for="monitorTime">监测日期:</label>
            <input type="text" id="monitorTime" name="monitorTime"  />
            <br />
            <label for="pm10">PM10:*</label>
            <input type="text" id="pm10" name="pm10" required>
            <br />
            <label for="pm25">PM2.5:*</label>
            <input type="text" id="pm25" name="pm25" required>
            <br />
            <label for="monitoringStation">监测站:*</label>
            <input type="text" id="monitoringStation" name="monitoringStation" required>
            <br/>
            <p>
                <input type="submit" value="保存" />
                <input type="reset" value="重置" />
                <input type="button" value="返回" onclick="javascript:history.go(-1);" />
            </p>
        </form>

</body>
</html>